package com.eyalsh.data_structures.stacks;

import java.lang.reflect.Array;

/**
 * @author Eyal Shalev
 * 
 */
public class ArrayStack<T> implements Stack<T> {

	private T[] stack;

	/**
	 * Constructor for ArrayStack<br>
	 * 
	 * @param size
	 *            The fixed size of the stack.
	 */
	@SuppressWarnings("unchecked")
	public ArrayStack(int size, Class<T> clazz) {
		stack = (T[]) Array.newInstance(clazz, size);
	}

	/*
	 * @see com.eyalsh.data_structures.stacks.Stack#pop()
	 */
	@Override
	public T pop() {
		// TODO Auto-generated method stub
		return null;
	}

	/*
	 * @see com.eyalsh.data_structures.stacks.Stack#push(java.lang.Object)
	 */
	@Override
	public void push(T value) {
		// TODO Auto-generated method stub

	}

	/*
	 * @see com.eyalsh.data_structures.stacks.Stack#empty()
	 */
	@Override
	public boolean empty() {
		// TODO Auto-generated method stub
		return false;
	}

}
